package cn.fj.data.service;

import cn.fj.basic.util.PageList;
import cn.fj.data.domain.Dictionary;
import cn.fj.data.query.DictionaryQuery;
import cn.fj.org.domain.Department;

import java.util.List;

public interface IDictionaryService {

    /*增加*/
    void add(Dictionary dictionary);
    /*删除*/
    void  delete(long id);
    /*修改*/
    void modify (Dictionary dictionary);
    /*查询全部*/
    List<Dictionary> queryAll();
    /*查询单条*/
    Dictionary queryOne(Long id );

    /*分页和高级查询的方法*/

    //分页
    PageList<Dictionary> queryData(DictionaryQuery dictionaryquery);

    //批量删除
    void allDelete(List<Long> ids);

    List<Department> depTree();

    void delete1(Long id);

    /*批量删除*/
    void allDelete1(List<Long> ids);
}
